package common.util;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

public class MyClassLoader extends ClassLoader {

	private static final MyClassLoader mcl = new MyClassLoader();
	
	private MyClassLoader() {
		
	}
	
	public static MyClassLoader getInstance() {
		return mcl;
	}
	
	protected URL findResource(String name)	{
		File file = new File(name);

		try	{
			return file.toURI().toURL();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
		return super.findResource(name);
	}
}
